<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ page import="com.conversationboard.config.*" %>
<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.view.MainMenu"%>

<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>

<% 
	String boardId = (String) request.getParameter("boardid");
	String threadId = (String) request.getParameter("threadid");
	String messageId = (String) request.getParameter("messageid");
%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>User Profile</title>
		<link rel="stylesheet" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
	</head>

	<body>

		<%= MainMenu.display(request.getUserPrincipal()) %>
	
		<div class="headingblock">
			<h1>User Profile: ${user.fullDisplayName}</h1>
		</div>

		<div class="mainblock">		
			
			<div class="formsection">

				<h2>Details</h2>

				<table class="table">
					<tr class="row">
						<td class="header">Name</td>
						<td class="cell">${userProfile.fullName}</td>
					</tr>
					<tr class="row">
						<td class="header">Email</td>
						<td class="cell">${userProfile.email}</td>
					</tr>
					<tr class="row">
						<td class="header">Location</td>
						<td class="cell">${userProfile.location}</td>
					</tr>
					<tr class="row">
						<td class="header">Website URL</td>
						<td class="cell">${userProfile.websiteUrl}</td>
					</tr>
					<tr class="row">
						<td class="header">Info</td>
						<td class="cell">${userProfile.info}</td>
					</tr>
					<tr class="row">
						<td class="header">WebMail</td>
						<td class="cell"><a href="<%= Configuration.getInstance().getRoot() %>/Pages/webmail.jsp?boardid=<%= boardId %>&threadid=<%= threadId %>&messageid=<%= messageId %>">Send an Email to this User</a></td>
					</tr>
				</table>
				
			</div>

		</div>
		
		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
			
	</body>
	
</html>